home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
flilib
/
flisrc
/
jseek.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-02-26
|
391b
|
21 lines
#include "aai86.h"
#include "aados.h"
/* Reposition file pointer */
long dos_seek (Jfile f, long offset, int mode)
{
union i86_regs reg;
reg.b.ah = 0x42;
reg.b.al = mode;
reg.w.bx = f;
reg.w.cx = i86_ptr_seg((void *)offset);
reg.w.dx = i86_ptr_offset((void *)offset);
if (i86_sysint(0x21,®,®)&1)
return(-1);
else
return(i86_make_long(reg.w.ax, reg.w.dx));
}